<template>
	<view class="single">
		<u-tabs :list="list" :is-scroll="false" :current="current" @change="change" active-color="white"></u-tabs>
		<view class="content" v-if="this.current==0">
			<view class="no">
				<image src="../../static/img/no.png" mode=""></image>
				<view class="xiaoxi">
					暂无该订单
				</view>
			</view>
		</view>
		<view class="content" v-if="this.current==1">
			<view class="no">
				<image src="../../static/img/no.png" mode=""></image>
				<view class="xiaoxi">
					暂无该订单
				</view>
			</view>
		</view>
		<view class="content" v-if="this.current==2">
			<view class="no">
				<image src="../../static/img/no.png" mode=""></image>
				<view class="xiaoxi">
					暂无该订单
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {single} from '../../models/axios.js'
	export default {
		data(){
			return{
				list: [{
					name: '待抢单'
				}, {
					name: '进行中'
				}, {
					name: '待完成'
				}],
				current: 0,
			}
		},
		created() {
			// this.go()
		},
		methods:{
			change(index) {
				this.current = index;
			},
			async go(){
				let data={}
				let res=await single(data)
				console.log(res)
			}
		}
	}
</script>

<style scoped>
	.single{
		background: rgb(238,238,238);
		height: 1250rpx;
	}
	/deep/.u-tabs{
		background: rgb(27,127,214) !important;
	}
	.no{
		display: flex;
		flex-direction: column;
		align-content: center;
		align-items: center;
		padding-top: 50%;
	}
	.no image{
		width: 220rpx;
		height: 200rpx;
	}
	.no view{
		color: rgb(153,153,153);
		padding-top: 30rpx;
	}
</style>
